package com.haorui.lygyd.employeemanager.dto;

import com.haorui.base.core.utils.BeanUtil;
import com.haorui.base.core.vo.DataTransferObject;
import com.haorui.lygyd.employeemanager.entity.YuangongpingjiaEntity;
import com.haorui.lygyd.employeemanager.enumerate.Pingji;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @support: 西安鑫正豪信息技术有限公司
 * @author: 系统生成
 * @version: 1.0
 * @Date: Wed Feb 27 00:27:31 CST 2019
 * @Description: 员工评价
 */
@Data
public class YuangongpingjiaDto implements DataTransferObject<YuangongpingjiaEntity> {

    private String id;
    @ApiModelProperty(value = "员工ID")
    private String yuangongId;
    @ApiModelProperty(value = "员工姓名")
    private String yuangongName;
    @ApiModelProperty(value = "评价级别")
    private Pingji pingjiajibie;
    @ApiModelProperty(value = "评价内容")
    private String pingjianeirong;
    @ApiModelProperty(value = "评价日期")
    private Date pingjiaDate;
    @ApiModelProperty(value = "备注")
    private String beizhu;

    @Override
    public YuangongpingjiaEntity buildPO() {
        YuangongpingjiaEntity yuangongpingjiaEntity = new YuangongpingjiaEntity();
        BeanUtil.beanCopyIgnoreDefault(this, yuangongpingjiaEntity);
        return yuangongpingjiaEntity;
    }

    @Override
    public String getId() {
        return this.id;
    }
}
